package com.hhc.query;

import jakarta.validation.constraints.Min;
import lombok.Data;

/**
 * <p>
 *   通知公告查询参数封装对象
 * </p>
 * @author pc
 */
@Data
public class NoticeQuery {

    /**
     * 当前页码
     */
    @Min(value = 1, message = "当前页码不能小于1")
    private Integer currentPage = 1;

    /**
     * 每页大小
     */
    @Min(value = 1, message = "每页大小不能小于1")
    private Integer pageSize = 10;

    private String title;
    private String content;
}